package Tables;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

abstract public class Table {
    protected Connection connection;
    public Table(Connection connection){
        this.connection = connection;
    }
    protected List<String> tableList = new ArrayList<>();
    abstract public List<String> get() throws SQLException;
    public void print(){
        for(String x : tableList){
            System.out.println(x);
        }
    }
}
